home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / kh_gdi.zip / APXPREV.H < prev    next >
C/C++ Source or Header  |  1996-05-28  |  2KB  |  72 lines

  1. #if !defined(__apxprev_h)               // Sentry, use file only if it's not already included.
  2. #define __apxprev_h
  3.  
  4. /*  Project slang
  5.     
  6.     Copyright ⌐ 1995. All Rights Reserved.
  7.  
  8.     SUBSYSTEM:    slang.exe Application
  9.     FILE:         APXPrev.H
  10.     AUTHOR:       Stepan S.Vartanov
  11.  
  12.  
  13.     OVERVIEW
  14.     ========
  15.     Class definition for PreviewWindow (Print Preview).      
  16. */
  17.  
  18.  
  19. #include <owl\owlpch.h>
  20. #pragma hdrstop
  21.  
  22. #include "slang\apxprint.h"
  23. #include "slang\slangapp.rh"
  24.  
  25.  
  26. //{{TDecoratedFrame = PreviewWindow}}
  27. class PreviewWindow : public TDecoratedFrame {
  28. public:
  29.     PreviewWindow (TWindow *parentWindow, TPrinter *printer, TWindow* currWindow, const char far* title, TLayoutWindow* client);
  30.     ~PreviewWindow ();
  31.  
  32.     int             PageNumber;
  33.  
  34.     TWindow         *CurrWindow;
  35.     TControlBar     *PreviewSpeedBar;
  36.     TPreviewPage    *Page1;
  37.     TPreviewPage    *Page2;
  38.     TPrinter        *Printer;
  39.  
  40.     TPrintDC        *PrnDC;
  41.     TSize           *PrintExtent;
  42.     APXPrintOut     *Printout;
  43.  
  44. private:
  45.     TLayoutWindow   *Client;
  46.  
  47.     void SpeedBarState ();
  48.     void PPR_PreviousEnable (TCommandEnabler &tce);
  49.     void PPR_NextEnable (TCommandEnabler &tce);
  50.     void PPR_Previous ();
  51.     void PPR_Next ();
  52.     void PPR_OneUp ();
  53.     void PPR_TwoUpEnable (TCommandEnabler &tce);
  54.     void PPR_TwoUp ();
  55.     void PPR_Done ();
  56.     void CmPrintEnable (TCommandEnabler &tce);
  57.     void CmPrint ();
  58.  
  59. //{{PreviewWindowVIRTUAL_BEGIN}}
  60. protected:
  61.     virtual void SetupWindow ();
  62. //{{PreviewWindowVIRTUAL_END}}
  63.  
  64. //{{PreviewWindowRSP_TBL_BEGIN}}
  65. protected:
  66. //{{PreviewWindowRSP_TBL_END}}
  67. DECLARE_RESPONSE_TABLE(PreviewWindow);
  68. };    //{{PreviewWindow}}
  69.  
  70.  
  71. #endif      // __apxprev_h sentry.
  72.